package com.anonymous.community.api.model;

import java.util.List;

/**
 * 评论树响应 - 根据API v3.0.0文档
 * 响应格式：{ "comments": [...] }
 */
public class CommentTreeResponse {
    private List<CommentItem> comments;

    public static class CommentItem {
        private int id;
        private String content;
        private String anonymous_id;
        private Integer parent_id;
        private int like_count;
        private String created_at;
        private boolean liked;
        private List<CommentItem> replies;

        public int getId() {
            return id;
        }

        public String getContent() {
            return content;
        }

        public String getAnonymousId() {
            return anonymous_id;
        }

        public Integer getParentId() {
            return parent_id;
        }

        public int getLikeCount() {
            return like_count;
        }

        public String getCreatedAt() {
            return created_at;
        }

        public boolean isLiked() {
            return liked;
        }

        public List<CommentItem> getReplies() {
            return replies;
        }
    }

    public List<CommentItem> getComments() {
        return comments;
    }

    public void setComments(List<CommentItem> comments) {
        this.comments = comments;
    }
}
